<template>
  <view>
    <uni-card class="view-title" :title="title">
      <!-- <text class="uni-body view-content">{{ content }}</text> -->
	  <rich-text class="uni-body view-content" v-if="content" :nodes="content"></rich-text>
    </uni-card>
  </view>
</template>

<script>
import { getNoticeById } from '@/api/system/notice'
  export default {
    data() {
      return {
        id: '',
        content: '',
		title:''
      }
    },
    onLoad(options) {
      this.id = options.id
	  this.getNotice(this.id)
    },
	methods:{
		getNotice(id){
			getNoticeById(id).then(response=>{
				this.title = response.data.noticeTitle
				this.content = response.data.noticeContent
			})
		}
	}
  }
</script>

<style scoped>
  page {
    background-color: #ffffff;
  }

  .view-title {
    font-weight: bold;
  }

  .view-content {
    font-size: 26rpx;
    padding: 12px 5px 0;
    color: #333;
    line-height: 24px;
    font-weight: normal;
  }
</style>
